package com.xbongbong.pro.rabbitmq.feign;

import com.xbongbong.paas.toolbox.wrap.XbbResponse;
import com.xbongbong.pro.message.pojo.dto.AutoClueAssignmentRabbitMqDTO;
import com.xbongbong.pro.message.pojo.vo.AutoClueAssignmentRabbitMqVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author long
 * @version v1.0
 * @date 2021/1/18 10:59
 * @since v1.0
 */
@FeignClient(name = "pro-web-pc",contextId = "autoClueAssignmentFeignClient")
public interface AutoClueAssignmentFeignClient {

    /**
     * Description: 线索自动分配
     * @param autoClueAssignmentRabbitMqDTO 自动分配dto
     * @return com.xbongbong.paas.toolbox.wrap.XbbResponse<com.xbongbong.pro.message.pojo.vo.AutoClueAssignmentRabbitMqVO>
     */
    @RequestMapping(value = "/pro/v1/autoAssignment/clue", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<AutoClueAssignmentRabbitMqVO> autoClueAssignment(@RequestBody AutoClueAssignmentRabbitMqDTO autoClueAssignmentRabbitMqDTO, @RequestParam("lang") String lang);
}
